<template>
  <el-container>
    <el-container>
      <el-aside width="300px">
        <el-row class="tac">
          <el-col :span="24">
            <el-menu
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b"
            >
              <el-menu-item index="1">
                <i class="el-icon-document"></i>
                <span slot="title" @click="userInfo">个人信息</span>
              </el-menu-item>
              <el-menu-item index="2">
                <i class="el-icon-document"></i>
                <span slot="title" @click="carController">汽车管理</span>
              </el-menu-item>
              <el-menu-item index="3">
                <i class="el-icon-document"></i>
                <span slot="title" @click="parkingController">出租车位</span>
              </el-menu-item>
            </el-menu>
          </el-col>
        </el-row>
      </el-aside>
      <!-- -------------------------------------aside End-------------------------------- -->
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
     
    };
  },
  methods: {
    //跳转用户信息界面
    userInfo(){
  this.$router.push("/UHome/UserMap/UserInfo");
    },

    //跳转到用户的 汽车管理
    carController(){
   this.$router.push("/UHome/UserMap/CarController");
    },
    
    //出租车位
    parkingController(){
       this.$router.push("/UHome/UserMap/RentChewei");
    },
  },
};
</script>

<style scoped>

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>